import hasRole from './auth/hasRole'
import hasPermi from './auth/hasPermi'
import isAdmin from './auth/isAdmin'
export default function directive(app){
  app.directive('hasRole', hasRole)
  app.directive('hasPermi', hasPermi)
  // 别名
  app.directive('hasPerm',hasPermi)
  app.directive('isAdmin',isAdmin)
}